//
//  HttpBaseClient.h
//  Training
//
//  Created by michael shen on 15/6/17.
//  Copyright (c) 2015年 coolem. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFHTTPSessionManager.h"

typedef void(^UpLoadImageBlock)(id result,NSError *error);

@interface HttpBaseClient : AFHTTPSessionManager

+ (HttpBaseClient *)sharedClient;

- (void)requestWithRequest:(NSString *)request finish:(void (^)(NSURLSessionDataTask *operation,id responseObject , NSError *error))block;
- (void)requestWithRequest:(NSString *)request method:(NSString *)method finish:(void (^)(NSURLSessionDataTask *operation,id responseObject ,NSError *error))block;
-(void)requestWithRequest:(NSString *)request withParameters:(id)param finish:(void (^)(NSURLSessionDataTask *,id responseObject , NSError *))block;
//put请求
-(void)putRequestWithRequest:(NSString *)request withParameters:(id)param finish:(void (^)(NSURLSessionDataTask *,id responseObject , NSError *))block;
//delete请求
-(void)deleteRequestWithRequest:(NSString*)request withParameters:(id)param finish:(void (^)(NSURLSessionDataTask *,id responseObject , NSError *))block;

- (void)uploadImageWithName:(NSString*)name withFontImage:(UIImage*)image1 withbackImage:(UIImage*)image2 block:(void (^)(id result,NSError * error)) block;

@end
